package com.gking.resourcePool.realm;

import org.apache.shiro.authc.AuthenticationToken;

public class CustomAuthToken implements AuthenticationToken {

    private String username;

    private String password;


    public CustomAuthToken(String username, String password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public Object getPrincipal() {
        return this.username;
    }

    @Override
    public Object getCredentials() {
        return this.password;
    }
}
